﻿/*
 * 作者：北小菜
 * 个人网站：http://www.any12345.com
 * 邮箱：bilibili_bxc@126.com
 * QQ：1402990689
 * 微信：bilibili_bxc
 * 作者-哔哩哔哩主页：https://space.bilibili.com/487906612
 * 作者-头条西瓜主页：https://www.ixigua.com/home/4171970536803763
 * github开源地址：https://github.com/any12345com/BXC_StreamPusher
 * gitee开源地址：https://gitee.com/Vanishi/BXC_StreamPusher
 * Created by 北小菜 on 2023/3/21
*/
#include <iostream>
#include <string>
#include "StreamPusher.h"

int main(int argc, char *argv[]) {
    srand((int)time(NULL));

    //ffmpeg RTSP推流 https://www.jianshu.com/p/a9c7b08be46e
    //ffmpeg 推流参数  https://blog.csdn.net/qq_17368865/article/details/79101659

    const char* srcUrl = "rtsp://127.0.0.1:554/live/camera";
    const char* dstUrl = "rtsp://127.0.0.1:554/live/camera3";
    int dstVideoFps = 25;
    int dstVideoWidth = 1280;
    int dstVideoHeight = 720;

    StreamPusher pusher(srcUrl, dstUrl, dstVideoWidth, dstVideoHeight, dstVideoFps);
    pusher.start();

    return 0;
}